// 判断签名有没有过期
function judgeSignature() {
    let pro = new Promise((resolve, reject) => {
        var res = JSON.parse(localStorage.getItem("sign"));
        var timestamp = Date.parse(new Date()) / 1000;
        if (res && res.expire - 3 > timestamp) {
            resolve(res);
        } else {
            self.$post("http://192.168.1.51/mini/index.php/kind").then((res) => {
                if (res.status == 200) {
                    localStorage.setItem("sign", JSON.stringify(res.data));
                    resolve(res.data);
                }
            });
        }
    });
}